using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Blople.GameComponents;


namespace Blople.GameScenes
{
    public class StartScene : GameScene
    {
        protected Texture2D backgroundTexture;

        protected Logo logo;

        protected SpriteFont mediumFont;

        public StartScene(Game game, Texture2D backgroundTexture, Texture2D logoTexture, SpriteFont mediumFont) : base(game)
        {
            this.backgroundTexture = backgroundTexture;
            this.mediumFont = mediumFont;
            logo = new Logo(game, logoTexture);
            components.Add(logo);
        }

        public override void Initialize()
        {
            base.Initialize();
        }

        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
        }

        public override void Draw(GameTime gameTime)
        {
            SpriteBatch sBatch = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch));
            sBatch.Draw(backgroundTexture, new Vector2(0, 0), Color.White);
            sBatch.DrawString(mediumFont, "Click on ENTER to continue", new Vector2((Game.Window.ClientBounds.Width - mediumFont.MeasureString("Click on ENTER to continue").X) / 2, (Game.Window.ClientBounds.Height - mediumFont.MeasureString("Click on ENTER to continue").Y) / 2), new Color(118, 58, 0));
            base.Draw(gameTime);
        }
    }
}
